<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图</title>
</head>
<style>
    .bj1{
        width: 250px;
        height: 250px;
        color: white;
        margin-top: 10px;
        font-size: 30px;
    }
    .bt{
        width: 250px;
        height: 250px;
        color: white;
        margin-top: 10px;
        font-size: 30px;
        background-color: aqua;
        opacity: 1;
    }
    .t{
        width: 250px;
        height: 250px;
        color: white;
        margin-top: 10px;
        font-size: 30px;
        background-color: aqua;
        opacity: 0.5;
    }
</style>
<link rel="stylesheet" href="./导航栏.css">
<body>
    <div class="tou">
        <header>
            <ul>
                <li><a href="../首页.html">首页</a></li>
                <li><a href="./盒子.html">盒子</a></li>
                <li><a href="./奖状.html">奖状</a></li>
                <li><a href="./选择器.html">选择器</a></li>
                <li><a href="./五星图.html">五星图</a></li>
                <li><a href="./精灵图.html">精灵图</a></li>
                <li><a href="./背景图.html">背景图</a></li>
                <li><a href="./渐变图.html">渐变图</a></li>
                <li><a href="./格式化文本1.html">格式化文本1</a></li>
                <li><a href="./格式化文本2.html">格式化文本2</a></li>
            </ul>
        </header>
    </div>
    <h1>背景1</h1>
    <div class="bj">
        <div class="bj1" style="background-color: red;">红色背景</div>
        <div class="bj1" style="background-color: pink;">粉色背景</div>
        <div class="bj1" style="background-color: yellow;">黄色背景</div>
    </div>
    <h1>背景2</h1>
    <div class="bj">
        <div class="bj1" style="background-color: rgb(148, 34, 209)">rgb背景</div>
        <div class="bj1" style="background-color: rgb(85, 135, 14)">rgb背景</div>
        <div class="bj1" style="background-color: rgba(142, 142, 64);">rgba背景</div>
    </div>
    <h1>背景3</h1>
    <div class="bj">
        <div class="bj1" style="background-color: #9c5e65">16进制背景</div>
        <div class="bj1" style="background-color: #28ddea">16进制背景</div>
        <div class="bj1" style="background-color: #ededa4;">16进制背景</div>
    </div>
    <h1>背景4</h1>
    <div class="bj">
        <div class="bj1" style="background-color: hsl(353, 23%, 48%)">hsl背景</div>
        <div class="bj1" style="background-color: hsl(184, 79%, 15%)">hsl背景</div>
        <div class="bj1" style="background-color: hsla(60, 78%, 20%);">hsla背景</div>
    </div>
    <h1 >背景5</h1>
    <div class="bj">
        <div class="bt">opacity不透明</div>
        <div class="t">opacity透明</div>
    </div>
    <hr>
    <h3>源代码</h3>
    <pre>
        &ltstyle>
            .bj1{
                width: 250px;
                height: 250px;
                color: white;
                margin-top: 10px;
                font-size: 30px;
            }
            .bt{
                width: 250px;
                height: 250px;
                color: white;
                margin-top: 10px;
                font-size: 30px;
                background-color: aqua;
                opacity: 1;
            }
            .t{
                width: 250px;
                height: 250px;
                color: white;
                margin-top: 10px;
                font-size: 30px;
                background-color: aqua;
                opacity: 0.5;
            }
        &lt/style>
        &ltbody>
            &lth1>背景1&lt/h1>
            &ltdiv class="bj">
                &ltdiv class="bj1" style="background-color: red;">红色背景&lt/div>
                &ltdiv class="bj1" style="background-color: pink;">粉色背景&lt/div>
                &ltdiv class="bj1" style="background-color: yellow;">黄色背景&lt/div>
            &lt/div>
            &lth1>背景2&lt/h1>
            &ltdiv class="bj">
                &ltdiv class="bj1" style="background-color: rgb(148, 34, 209)">rgb背景&lt/div>
                &ltdiv class="bj1" style="background-color: rgb(85, 135, 14)">rgb背景&lt/div>
                &ltdiv class="bj1" style="background-color: rgba(142, 142, 64);">rgba背景&lt/div>
            &lt/div>
            &lth1>背景3&lt/h1>
            &ltdiv class="bj">
                &ltdiv class="bj1" style="background-color: #9c5e65">16进制背景&lt/div>
                &ltdiv class="bj1" style="background-color: #28ddea">16进制背景&lt/div>
                &ltdiv class="bj1" style="background-color: #ededa4;">16进制背景&lt/div>
            &lt/div>
            &lth1>背景4&lt/h1>
            &ltdiv class="bj">
                &ltdiv class="bj1" style="background-color: hsl(353, 23%, 48%)">hsl背景&lt/div>
                &ltdiv class="bj1" style="background-color: hsl(184, 79%, 15%)">hsl背景&lt/div>
                &ltdiv class="bj1" style="background-color: hsla(60, 78%, 20%);">hsla背景&lt/div>
            &lt/div>
            &lth1>背景5&lt/h1>
            &ltdiv class="bj">
                &ltdiv class="bt">opacity不透明&lt/div>
                &ltdiv class="t">opacity透明&lt/div>
            &lt/div>
    </pre>
</body>
</html>